package com.oa.system.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 权限VO
 */
@Data
public class PermissionVO implements Serializable {

    @ApiModelProperty(value = "主键id ")
    private String id;

    @ApiModelProperty(value = "权限值")
    private String authority;

    @ApiModelProperty(value = "权限名称")
    private String name;

    @ApiModelProperty(value = "类型   1-菜单   2-按钮")
    private Integer type;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "路由")
    private String url;

    @ApiModelProperty(value = "上级菜单id   0表示没有上级菜单")
    private String pId;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否拥有该权限(1-是 2-否)")
    private String isHave;

    @ApiModelProperty(value = "子集合")
    private List<PermissionVO> permissionVOList;

}
